import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  loading: false,
  state: {
    noticeVisible: true
  },
  mutations: {
    noticeVisible(state, data) {
      state.noticeVisible = data
    }
  },
  actions: {
    setNoticeVisible ({commit}, data) {
      commit('noticeVisible', data)
    }
  }
})
